<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>注册</title>
    </head>
    <body>
        <h1>注册</h1>
        <!-- 使用 Thymeleaf 提供的支持从 Model 中获取数据 -->
        <div th:text="${message}">注册新用户</div>
        <!-- 以 POST方式提交表单 -->
        <form action="/user/register" method="POST">
            <div>
                邮箱: <input type="text" name="email">
            </div>
            <div>
                密码: <input type="password" name="password">
            </div>
            <div>
                确认密码: <input type="password" name="confirm">
            </div>
            <div>
                <button type="submit">注册</button>
            </div>
        </form>
    </body>
</html>